<template>
	<view class="user-list u-f-ac animate__animated animate__fadeInLeft animate__slow">
		<!-- 头像 -->
		<image :src="item.avatar" mode="widthFix" lazy-load></image>
		<!-- 昵称、性别、年龄 -->
		<view class="user-list-n-s">
			<view>{{item.nickname}}</view>
			<view style="display: inline-block;">
				<tag-sex-age :sex="item.sex" :age="item.age"></tag-sex-age>
			</view>
		</view>
		<view class="icon iconfont u-f-ajc" :class="[item.isfollow ? 'icon-xuanze-yixuan' : 'icon-zengjia']"></view>
	</view>
</template>

<script>
	import tagSexAge from '../../components/common/tag-sex-age.vue';
	export default {
		components:{
			tagSexAge
		},
		props:{
			item: Object,
			index: Number
		},
		data(){
			return {
				
			}
		},
		methods:{
			
		}
	}
</script>

<style scoped>
	.user-list{
		padding: 20upx 20upx;
		border-bottom: 1upx solid #EEEEEE;
	}
	.user-list>image{
		width: 100upx;
		height: 100upx;
		border-radius: 100%;
		margin-right: 20upx;
		/* 不被压缩 */
		flex-shrink: 0;
	}
	.user-list-n-s{
		flex: 1;
	}
	.user-list-n-s>view:first-child{
		font-size: 35upx;
	}
	.user-list>view:last-of-type{
		width: 80upx;
		color: #CCCCCC;
	}
	.icon-zengjia{
		color: #F8791B!important;
	}
</style>
